package com.bbbk.util.word.conf.globalexception.conf;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.context.annotation.Bean;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
import org.springframework.context.annotation.Configuration;



/**
 * 全局异常定义
 * @author admin
 *
 */
@Configuration
@AutoConfigureBefore(WebMvcAutoConfiguration.class)
public class GlobalExceptionConfig {
	private final static Logger log = LoggerFactory.getLogger(GlobalExceptionConfig.class);
	@Bean  
    public HandlerExceptionResolverImpl getHandlerExceptionResolverImpl() {
		log.debug("HandlerExceptionResolver Bean init");
		return new HandlerExceptionResolverImpl();
	}

}

